define(function(require, exports, module) {

	"use strict";
	require("mui");
	require("jquery");
	var abpdata = require("abpinit");
	var abp = abpdata.abpstart;
	var template = require("template");
	mui.init({
		swipeBack: true //启用右滑关闭功能
	});
	require('http://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js');
	var dingTalkNav = require('dd_config');
	dingTalkNav.RightNavBar(false, "更多", "default");
	dingTalkNav.LeftNavBar(backHref);

	function backHref() {
		document.location.href = "../../src/simulateProduction/simulateProduction.html?dd_nav_bgcolor=FFFF943E";
	}
	$(function() {

		var dataStr = sessionStorage.getItem('data-production');

		var obj = JSON.parse(dataStr);

		getGoodsList("bindGoodsList", "#mui-content");

		function getGoodsList(templateId, mainId) {

			var html = template(templateId, obj);

			$(mainId).html(html);

		}

		mui('body').on('tap', 'header button', function() {
			sessionStorage.removeItem('data-production');
		});

	});

});